
iris.UI(
	function (self) {
		
		var _Btn
		,	_Text;
		
		self.Settings({
			"text" : "This is default text"
		});
		
		self.Create = function (p_domAttr, p_settings) {
			self.Template("example/ui/ui_example.html");
			
			_Text = self.Setting("text");
			
			_Btn = self.InstanceUI( "ui_btn", "example/ui/btn.js", { "onClick" : _Alert } );
			_Btn.Label(_Text);
			
			for ( var f=0, F=4; f<F; f++ ) {
				self.InstanceUI( "items", "example/ui/ui_example_item.js" );
			}
			

		};
		
		function _Alert () {
			alert( _Text );
		}
		
	}
);